/*
 * @Descripttion:
 * @Author: cuidm
 * @Date: 2022-06-15 15:45:50
 * @LastEditors: cuidm
 * @LastEditTime: 2022-06-29 14:32:32
 */
import { renderNotFound } from '@ice/stark-app';
import BasicLayout from '@/layouts/BasicLayout';
// 模型
import modelRouterConfig from '@/modules/model/modelRouterConfig';
// 资源
import resourceRouterConfig from '@/modules/resource/resourceRouterConfig';
//模版
import templateRouterConfig from '@/modules/template/templateRouterConfig';

const routerConfig = [
    {
        path: '/',
        component: BasicLayout,
        children: [
            ...modelRouterConfig,
            ...resourceRouterConfig,
            ...templateRouterConfig,
            // ...businessRouterConfig,
            {
                path: '*',
                component: () => {
                    return renderNotFound();
                },
            },
        ],
    },
];

export default routerConfig;
